#include<bits/stdc++.h>

using namespace std;

int main() {
	int a[] = {1, 6, 2, 5, 1, 2, 3,-99,123456};
	int n = sizeof(a) / sizeof(a[0]);
	sort(a,a+n);
	cout<<a[0]<<" ";
	for(int i=1;i<n;i++){
		if(a[i]==a[i-1])continue;
		cout<<a[i]<<" ";
	}
	return 0;
}
